<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${initParam.url }/bootstrap-3.0.3/css/bootstrap.min.css">
<script type="text/javascript"
	src="${initParam.url }/statics/js/jquery-1.12.4.js"></script>
<script type="text/javascript"
	src="${initParam.url }/statics/js/login.js"></script>
<script type="text/javascript"
	src="${initParam.url }/statics/js/bootstrap.min.js"></script>
</head>
<body>
	<nav class="navbar navbar-default .navbar-fixed-top" role="navigation">
	新增APP版本信息 </nav>
</body>
<div>
	<h2 style="margin: 0px auto">历史版本列表</h2>

	<table border="1">
		<tr>
			<th>软件名称</th>
			<th>版本号</th>
			<th>版本大小（单位：M）</th>
			<th>发布状态</th>
			<th>APK文件下载</th>
			<th>最新更新时间</th>

		</tr>
		<c:forEach var="m" items="${appVersions}">
			<tr>
				<td>${m.appInfo.softwareName}</td>
				<td>${m.versionNo}</td>
				<td>${m.versionSize}</td>
				<td>${m.publishStatus.valueName}</td>
				<td>${m.apkFileName}</td>
				<td>${m.modifyDate}</td>
			</tr>
		</c:forEach>
	</table>
</div>
<div>
	<h2>新增版本信息</h2>
	<br />
<form action="addmaintains" method="get" enctype="multipart/form-data">
		<input type="hidden" value="${id}" id="id" name="id"/>
	<table id="albumEdit" style="margin: 0px auto">
		<tr>
			<td>版本号*</td>
			<td><input class="txt" type="text" id="versionNo" name="versionNo" value="" /><label
				class="error"></label></td>
			<br/>
		</tr>
		<tr>
			<td>版本大小*</td>
			<td><input class="txt" type="text" id="versionSize" name="versionSize" /><label
				class=""></label></td>
		</tr>

		<tr>
			<td>发布状态*</td>
			<td>预发布</td>
		</tr>

		<tr>
			<td>版本简介*</td>
			<td><textarea name="versionInfo"></textarea></td>
		</tr>

		<tr>
			<td>apk文件*</td>
			<td><img src="" alt="" /><br /> <input class="txt" type="file"
				id="apkFileName" name="apkFileName" /><label class="error"></label></td>
		</tr>

		<tr>
			<td><input id="btnSubmit" type="submit" name="btnSubmit"
				value="保存" /><input id="btnSubmit" type="submit" name="btnSubmit"
				value="返回" /></td>
		</tr>
	</table>
	</form>
</div>

</html>